﻿
@{
    ViewBag.Title = "UpdatePassword";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}

@section css {

}
<div class="page-content" ng-cloak ng-controller="AccountController" ng-init="
     Set.NewPassword='';
     Set.RePassword='';
    PageLoading = false;
    LoadingMsg='加载中,请稍后...';
          ">
    <div class="load" ng-show="PageLoading">
        <div class="loader">
            <svg version="1.1" id="loader-1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <path fill="#000" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
            <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />
			</path>
		</svg>
            <div class="load-msg">{{LoadingMsg}}</div>
        </div>
    </div>
    <div class="page-heading">
        <h1>修改密码</h1>
        <div class="options">
            <div class="btn-toolbar">
            </div>
        </div>
    </div>
    <ol class="breadcrumb">
        <li>个人信息</li>
        <li class="active"><a>修改密码</a></li>
    </ol>

    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading"><h2>修改密码</h2></div>
                    <div class="panel-body">
                        <form class="form-horizontal row-border">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">原密码</label>
                                <div class="col-sm-5">
                                    <input type="password" class="form-control" ng-model="Set.Password">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">新密码</label>
                                <div class="col-sm-5">
                                    <input type="password" class="form-control" maxlength="20" ng-model="Set.NewPassword">
                                </div>
                                <div class="col-sm-2"><label class="control-label" style="font-weight:bold;">{{Set.NewPassword.length}}/20</label></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">确认新密码</label>
                                <div class="col-sm-5">
                                    <input type="password" class="form-control" maxlength="20" ng-model="Set.RePassword">
                                </div>
                                <div class="col-sm-2"><label class="control-label" style="font-weight:bold;">{{Set.RePassword.length}}/20</label></div>
                            </div>
                        </form>
                        <div class="panel-footer">
                            <div class="row">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button class="btn-primary btn" ng-click="ResetPassword(Set);">修改</button>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

@section Js{
    <script src="~/Assets/js/pg/MyAccount.js"></script>
}